package com.imooc.newretail.bpl.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统角色表
 * </p>
 *
 * @author Hank
 * @since 2020-06-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYS_ROLE")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("ROLE_ID")
    private String roleId;

    /**
     * 角色名称
            
     */
    @TableField("NAME")
    private String name;

    @TableField("DISC")
    private String disc;

    /**
     * 角色类型： 0系统角色、1租户公共角色、2自定义角色
            
     */
    @TableField("TYPE")
    private String type;

    @TableField("TENANT_ID")
    private String tenantId;

    @TableField("CREATER")
    private String creater;

    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;


}
